package com.qimei.onerice.entity;


public class OrderDetail {
	private int orderDetailId;      // 订单详情ID
	private int orderId;            // 订单ID
	private int dishId;             // 菜品ID
	private String dishName;        // 菜品名称
	private String categoryName;      // 菜品分类名称
	private int quantity;           // 数量
	private double unitPrice;       // 单价
	private double subtotal;        // 小计金额

	public OrderDetail() {
	}

	public OrderDetail(int orderDetailId, int orderId, int dishId, int quantity, double unitPrice, double subtotal) {
		this.orderDetailId = orderDetailId;
		this.orderId = orderId;
		this.dishId = dishId;
		this.quantity = quantity;
		this.unitPrice = unitPrice;
		this.subtotal = subtotal;
	}

	public String getDishName() {
		return dishName;
	}

	public void setDishName(String dishName) {
		this.dishName = dishName;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public int getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(int orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getDishId() {
		return dishId;
	}

	public void setDishId(int dishId) {
		this.dishId = dishId;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public double getSubtotal() {
		return subtotal;
	}

	public void setSubtotal(double subtotal) {
		this.subtotal = subtotal;
	}
}
